﻿using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.Data;
/*************************************************************************************

     总成相关操作  liudan add
  
*************************************************************************************/

namespace BLL
{
    public class DeliveryBLL
    {
        public DeliveryDAL deDal = new DeliveryDAL();

        /// <summary>
        /// 获取总成列表
        /// </summary>
        public DataSet GetDeliveryMain()
        {
            return deDal.GetDeliveryMain();
        }
        /// <summary>
        /// 获取总成单里的明细
        /// </summary>
        public DataSet GetDelivery(string DInterID) 
        {
            return deDal.GetDelivery(DInterID);
        }
        /// <summary>
        /// 获取总成已扫描明细
        /// </summary>
        public DataSet GetDeliveryStk(string Did) 
        {
            return deDal.GetDeliveryStk(Did);
        }
        /// <summary>
        /// 扫码获取件信息
        /// </summary>
        public bool GetPackage(string PkgsBarCode, out string PkgsID, out string ItemSku, out string StickLen, out string Stick, out string FQty, out string FNumber, out string PkgsStatus)
        {
            return deDal.GetPackage(PkgsBarCode, out  PkgsID, out  ItemSku, out  StickLen, out  Stick, out  FQty, out  FNumber, out  PkgsStatus);
        }
        /// <summary>
        /// 提交扫描明细
        /// </summary>
        public bool UpdateDeliveryStk(string PkgsID, string Did)
        {
            return deDal.UpdateDeliveryStk(PkgsID, Did);
        }
        /// <summary>
        /// 获取明细信息
        /// </summary>
        public bool GetDeliveryById(string Did, out string DInterID, out string Dnumber, out string NDnumber)
        {
            return deDal.GetDeliveryById(Did, out  DInterID, out  Dnumber, out  NDnumber);
        }
        /// <summary>
        /// 完成明细
        /// </summary>
        public bool FinishDelivery(string Did)
        {
            return deDal.FinishDelivery(Did);
        }
        /// <summary>
        /// 完成订单
        /// </summary>
        public bool FinishDeliveryMain(string DInterID)
        {
            return deDal.FinishDeliveryMain(DInterID);
        }

    }
}
